import { createI18n } from 'vue-i18n'
import zh from './zh.js'
import zhtw from './zh-tw.js'
import nogu from './nogu.js'
import Cookies from 'js-cookie'

// console.log(Cookies.get('Lang'))
const i18n = createI18n({
    legacy: false,
    globalInjection:false, //是否全局注入
    locale:Cookies.get('Lang') ? Cookies.get('Lang') : 'zhtw',
    messages: {
        zh,
        zhtw,
		// nogu
    }
})

export default i18n
